#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
int main()
{
	string str;
	int num = 1;
	while (cin>>str)
	{
		bool flag = true;
		int length = str.length(); 
		for (int i = 0; i < length / 2; i++)
		{
			if (str[i] != str[length - 1 - i])
			{
				flag = false;
				break;
			}
		}
		cout << "case" << num << ":" << (flag ? "yes" : "no") << endl;
		num++;
	}
	return 0;

}